package com.lagou.second.provider.impl;

import com.lagou.provider.HelloServiceB;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;


@Service
public class HelloServiceBImpl implements HelloServiceB {

  @Override
  public String hello() {
    System.out.println(" client ip:" + RpcContext.getContext().getAttachment("clientIp"));
    return "dubbo-b";
  }
}
